class Phone:
    def setattrs(self,brand,color):
        self.brand = brand
        self.color = color

    def getbrand(self):
        return self.brand

    def getColor(self):
        print(self.color)

    def delBrand(self):
        del self.brand


# 创建对象 实例化
phone1 = Phone()
phone1.setattrs('iphone13','红色')
# print(phone1.brand)
# print(phone1.color)
print(phone1.brand)
phone1.getColor()
# phone1.delBrand()
# print(phone1.brand)
